package cn.bb.bbstudy.service;

import cn.bb.bbstudy.pojo.Comment;
import com.github.pagehelper.Page;

import java.util.List;

public interface CommentService{


    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> selectAllByTopic(String topId);

    int count(String uid);

    Page<Comment> selectAllByUid(String uid);

    void deleteCommentByCid(String cid);
}
